package edu.sctu.practice.class01.wujiayi.assing02.rational;

/**
 * Created by acer1 on 2015/10/15.
 */
public class Rational {
    public Rational(){
        System.out.println("构造方法");
    }

    public float sum(float num1,float num2){
        float num = 0;
        num = num1+num2;
        return num;
    }
    public float subduction(float num1,float num2){
        float num = 0;
        num = num1-num2;
        return num;
    }
    public float multiplicat(float num1,float num2){
        float num = 0;
        num = num1*num2;
        return num;
    }
    public float division(float num1,float num2){
        float num = 0;
        num = num1/num2;
        return num;
    }
}
